package system.bean;

import java.util.Collection;
import java.util.Vector;

import util.ORProperty;
import util.ObjectRelationMappable;
import util.ObjectRelationMappingUtil;

public class Operation implements ObjectRelationMappable{

	private int operationId;
	private String title;
	private String identify;
	private String htmlStr;
	private String comment;
	public final static String tableName = "operations";
	private final static Vector<Operation> orProperties = new Vector<Operation>();
	
	private static void initORProperties(Operation operation){
        if (orProperties.size() > 0)return;
        ObjectRelationMappingUtil.addORProperty("operationId", false,	 ORProperty.FIELD_TYPE_INT, "operationId", true, orProperties);
        ObjectRelationMappingUtil.addORProperty(operation, "title"      , "title"      , orProperties);
        ObjectRelationMappingUtil.addORProperty(operation, "identify"   , "identify"   , orProperties);
        ObjectRelationMappingUtil.addORProperty(operation, "htmlStr"    , "htmlStr"    , orProperties);
        ObjectRelationMappingUtil.addORProperty(operation, "comment"    , "comment"    , orProperties);
	}
	
	public Operation(){
		initORProperties(this);
	}
	
	
	public int getOperationId() {
		return operationId;
	}
	public void setOperationId(int operationId) {
		this.operationId = operationId;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getIdentify() {
		return identify;
	}
	public void setIdentify(String identify) {
		this.identify = identify;
	}
	public String getHtmlStr() {
		return htmlStr;
	}
	public void setHtmlStr(String htmlStr) {
		this.htmlStr = htmlStr;
	}
	public String getComment() {
		return comment;
	}
	public void setComment(String comment) {
		this.comment = comment;
	}

	@Override
	public Collection<Operation> getORProperties() {
		return orProperties;
	}

	@Override
	public String getTableName() {
		return tableName;
	}

	
}
